<template>
	<view style="height: 100vh; background-color: #FFFFFF;">
		<u-navbar title-color="#FFFFFF" height="48" back-icon-color="#FFFFFF" :border-bottom="false" :is-fixed="true" :title="'退回原因'">
		</u-navbar>
		<u-form :model="backOffForm" ref="backOffForm" label-width="100px" style="padding: 24rpx;">
			<u-form-item label-position="left" label="工单退回原因">
				<u-input type="textarea" :border="border" v-model="backOffForm.feedbackRemark" />
			</u-form-item>
		</u-form>
		<u-button @click="submit" type="primary" style="margin: 24rpx;">提交</u-button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				border: true,
				backOffForm: {
					feedbackRemark: ''
				},
			}
		},
		methods: {
			onLoad(e) {
				this.backOffForm.ucId = e.ucId
			},
			onShow() {

			},
			back() {
				window.native.back()
			},
			submit() {
				this.utils.request("/api/app/workOrder/workOrderReturn", this.backOffForm, "post", "app", true).then(res => {
					uni.navigateTo({
						url: '/pages/index/workorder/maintenance/list'
					});
				}).catch(error => {
					console.log(error)
				})
			},

		}
	}
</script>

<style>

</style>
